import Api from "@Api";
const fs = require("fs");
const path = require('path')
export default class HomeController extends Api {
  public async index() {
    const { ctx } = this;
    try {
      const html = fs.readFileSync(path.join(this.app.baseDir, "app/public/index.html"), "binary");
      ctx.body = html;
    } catch (error) {
      ctx.body = '服务正在升级，请稍后刷新重试！';
    }
  }
  public async hellow() {
    this.notAuth()
  }
}
